package com.kexun.common.wrapper;

import java.util.List;
import java.util.Map;

/**
 * 包装器
 *
 * @author KEXUN
 */
public abstract class BaseControllerWrapper {

    private List<Map<String, Object>> mapList = null;

    public BaseControllerWrapper(List<Map<String, Object>> mapList) {
        this.mapList = mapList;
    }

    public List<Map<String, Object>> wrap() {
        for (Map<String, Object> map : this.mapList) {
            wrapTheMap(map);
        }
        return this.mapList;
    }

    protected abstract void wrapTheMap(Map<String, Object> map);


}
